package com.anos.smsfun.activities;

import android.app.Activity;
import android.os.Bundle;
import android.view.MenuItem;

import com.anos.smsfun.R;

public class SettingMessagingActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_setting_messaging);
		getActionBar().setDisplayHomeAsUpEnabled(true);
		getActionBar().setBackgroundDrawable(
				getResources().getDrawable(
						R.drawable.ab_background_textured_smsfun));
		getActionBar().setTitle(getString(R.string.action_settings));
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case android.R.id.home:
			finish();
			overridePendingTransition(0, R.anim.exit_slide_right);
			break;
		}
		return super.onOptionsItemSelected(item);
	}

	@Override
	public void onBackPressed() {
		super.onBackPressed();
		overridePendingTransition(0, R.anim.exit_slide_right);
		return;
	}
}
